package com.hxb.burp;

import burp.api.montoya.BurpExtension;
import burp.api.montoya.MontoyaApi;
import burp.api.montoya.persistence.Persistence;
import com.hxb.burp.handlers.WxAppletHandler;
import com.hxb.burp.handlers.WxOfficialHandler;

/**
 * burp_extendsion2
 *
 * @author 黄小斌
 * @date 2023-10-17
 */
public class Extension implements BurpExtension {


    @Override
    public void initialize(MontoyaApi api) {
        api.extension().setName("微信抓取Session");
        api.logging().logToOutput("插件加载成功，用于获取微信小游戏助手Session和昵称。");
        Persistence persistence = api.persistence();
        api.http().registerHttpHandler(new WxAppletHandler(api));
        api.http().registerHttpHandler(new WxOfficialHandler(api));
    }
}